package nccloud.impl.pub.erm.ytd;

import com.alibaba.fastjson.JSONObject;

public class CwgxYtdExecute {

	public Object execute(JSONObject reqJson)throws Exception {
		String action = (String) reqJson.get("action");
		if(action.equalsIgnoreCase("save")) {
			return new CwgxYtdSaveProcessor().doAction(reqJson);
		}else if(action.equalsIgnoreCase("update")){
			return new CwgxYtdUpdateProcessor().doAction(reqJson);
		}else if(action.equalsIgnoreCase("delete")) {
			return new CwgxYtdDeleteProcessor().doAction(reqJson);
		}
		return null;
		
	}
}
